<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="modal-dialog ms-modal-dialog" style="margin-top:50px;" >
  <div class="modal-content">
     
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      <h4 class="modal-title">修改日期-${projectPhase.project.name}-第<c:out value="${projectPhase.phase}"/>期</h4>
    </div>
      <form class="form-horizontal ms-form form-personal-info" method="POST" action="${ctx.host}/project-data/${projectPhase.project.id}/phase-date-edit" data-validate="true">
        
        <input type="hidden" name="_method" value="PATCH" />
        <input type="hidden" name="projectPhaseId" value="${projectPhase.id}" />
        <input type="hidden" name="currentPhase" value="${projectPhase.phase}" />
        
         <div class="modal-body">
             
            <div class="form-group  umu-form-group">
	          <label class="control-label col-xs-3">开始时间：</label>
	          <div class="col-xs-8">
	            <input type="text" class="form-control" name="beginDate" value="<fmt:formatDate value="${projectPhase.beginDate}" pattern="yyyy-MM-dd"/>" placeholder="开始时间" data-validate="required" autocomplete="off" tabindex="1"/>
	          </div>
	        </div>        
            <div class="form-group  umu-form-group">
	          <label class="control-label col-xs-3">结束时间：</label>
	          <div class="col-xs-8">
	            <input type="text" class="form-control" name="endDate" value="<fmt:formatDate value="${projectPhase.endDate}" pattern="yyyy-MM-dd"/>" placeholder="结束时间" data-validate="required" autocomplete="off" tabindex="2"/>
	          </div>
	        </div>   

        </div>

      <div class="modal-footer">
        <button type="submit" id="btnSubmit" class="btn btn-shadow-success btn-shadow umu-btn" >保存</button>
        <button type="button" class="btn btn-shadow-default btn-shadow umu-btn" data-dismiss="modal">取消</button>
      </div>
      </form>
    
  </div>
</div>